import { defHttp } from '/@/utils/http/axios';

enum Api {
  getDataStatisticsList = '/banck/dataStatistics/list',
  getDataStatisticsPremium = '/banck/dataStatistics/premium',
  getRankAndProportion = '/banck/dataStatistics/rankAndProportion',
  getSalesmanAndChannel = '/banck/dataStatistics/salesmanAndChannel',
}

export const getDataStatisticsList = (params) => {
  return defHttp.post({ url: Api.getDataStatisticsList, params });
};
export const getDataStatisticsPremium = (params) => {
  return defHttp.post({ url: Api.getDataStatisticsPremium, params });
};
export const getRankAndProportion = (params) => {
  return defHttp.post({ url: Api.getRankAndProportion, params });
};
export const getSalesmanAndChannel = (params) => {
  return defHttp.post({ url: Api.getSalesmanAndChannel, params });
};
